package com.ruoyi.fun.service;

import java.util.List;
import com.ruoyi.fun.domain.EcRefund;

/**
 * 退款/售后Service接口
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public interface IEcRefundService 
{
    /**
     * 查询退款/售后
     * 
     * @param refundId 退款/售后主键
     * @return 退款/售后
     */
    public EcRefund selectEcRefundByRefundId(Long refundId);

    /**
     * 查询退款/售后列表
     * 
     * @param ecRefund 退款/售后
     * @return 退款/售后集合
     */
    public List<EcRefund> selectEcRefundList(EcRefund ecRefund);

    /**
     * 新增退款/售后
     * 
     * @param ecRefund 退款/售后
     * @return 结果
     */
    public int insertEcRefund(EcRefund ecRefund);

    /**
     * 修改退款/售后
     * 
     * @param ecRefund 退款/售后
     * @return 结果
     */
    public int updateEcRefund(EcRefund ecRefund);

    /**
     * 批量删除退款/售后
     * 
     * @param refundIds 需要删除的退款/售后主键集合
     * @return 结果
     */
    public int deleteEcRefundByRefundIds(Long[] refundIds);

    /**
     * 删除退款/售后信息
     * 
     * @param refundId 退款/售后主键
     * @return 结果
     */
    public int deleteEcRefundByRefundId(Long refundId);

    /**
     * 根据refundId和组织ID查询Refund
     * 
     * @param refundId Refund主键
     * @param orgId 组织ID
     * @return Refund
     */
    public EcRefund selectEcRefundByRefundIdAndOrgId(Long refundId, Long orgId);

    /**
     * 根据组织ID查询Refund列表
     * 
     * @param ecrefund Refund
     * @param orgId 组织ID
     * @return Refund集合
     */
    public List<EcRefund> selectEcRefundListByOrgId(EcRefund ecrefund, Long orgId);
}
